package net.lzzy.practices.constants;

/**
 * @author  Jaymo 2022/5/12
 * Decription:
 *
 */
public enum Messages {
    /**
     * Controller中用得到的操作结果信息
     */
    SUCCESS("操作成功"),
    WRONG_PASSWORD("错误的用户名和密码"),
    USER_FORBIDDEN("该用户禁止登录"),
    No_PERMISSION("没有操作权限"),
    INCOMPLETE_INFO("信息不完整"),
    RELATED_DATA("存在关联数据"),
    WRING_ID("错误的ID");

    private final  String name;

    Messages(String name){
        this.name = name;
    }

    @Override
    public String toString() {
        return  name;
    }
}
